<?php
class NewsController extends AppController {
    
    function add() {
//         d(Inflector::singularize('News'));
// d(Inflector::pluralize('New'));
        if (!empty($this->data)) {            
            $user = $this->Auth->user();             
            $this->data['News']['user_id'] = $user['User']['id'];
//             d($this->data);
            return parent::add();            
        }
    }

}
?>